local function main(userOb,msgData)
    if not msgData.id then
        return
    end

    local player = userOb:get_partner(msgData.id)
    if not player then
        local result = {}
        result.code = 400
        userOb:send_packet("MSGS2CPartnerDead", result)
        return
    end

    local player_pos = userOb:get_combat_pos(player.id)
    if not player_pos then
        local result = {}
        result.code = 401
        userOb:send_packet("MSGS2CPartnerDead", result)
        return
    end

    ---! 伙伴死亡
    player.isdie = 1

    local result = {}
    result.code = 200
    userOb:send_packet("MSGS2CPartnerDead", result)
end

--注册方法
COMMAND_D:register_command("MSGC2SPartnerDead",GameCmdType.NONE, main)
